package util;

import java.io.InputStream;
import java.net.URL;

import org.apache.commons.io.IOUtils;

public class Utils {

    public static String getHTML(String url) {
        String html = null;
        try {
            URL u = new URL(url);
            InputStream is = u.openStream();
            html = IOUtils.toString(is, "UTF-8");
        } catch (Exception e) {
            e.printStackTrace();
        }
        return html;
    }
    
    public static void main(String[] args) {
        System.out.println(getHTML("http://203.91.46.49/rwgl/zwgkdzjc.jsp?test=testasdf"));
    }
}
